package com.ruoyi.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * [会员]对象 member
 * 
 * @author ruoyi
 * @date 2020-10-07
 */
public class Member extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Integer id;

    /** 类别 */
    @Excel(name = "类别")
    private Long typeCode;

    /** 用户名 */
    @Excel(name = "用户名")
    private String code;

    /** 密码 */
    @Excel(name = "密码")
    private String pwd;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nick;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String cellphone;

    /** 微信昵称 */
    @Excel(name = "微信昵称")
    private String wxNick;

    /** 微信头像 */
    private String wxAvatar;

    /** 微信openId */
    private String wxOpenId;

    /** 微信unionId */
    private String wxUnionId;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDt;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastDt;

    private Integer userId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setTypeCode(Long typeCode) 
    {
        this.typeCode = typeCode;
    }

    public Long getTypeCode() 
    {
        return typeCode;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPwd(String pwd) 
    {
        this.pwd = pwd;
    }

    public String getPwd() 
    {
        return pwd;
    }
    public void setNick(String nick) 
    {
        this.nick = nick;
    }

    public String getNick() 
    {
        return nick;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setCellphone(String cellphone) 
    {
        this.cellphone = cellphone;
    }

    public String getCellphone() 
    {
        return cellphone;
    }
    public void setWxNick(String wxNick) 
    {
        this.wxNick = wxNick;
    }

    public String getWxNick() 
    {
        return wxNick;
    }
    public void setWxAvatar(String wxAvatar) 
    {
        this.wxAvatar = wxAvatar;
    }

    public String getWxAvatar() 
    {
        return wxAvatar;
    }
    public void setWxOpenId(String wxOpenId) 
    {
        this.wxOpenId = wxOpenId;
    }

    public String getWxOpenId() 
    {
        return wxOpenId;
    }
    public void setWxUnionId(String wxUnionId) 
    {
        this.wxUnionId = wxUnionId;
    }

    public String getWxUnionId() 
    {
        return wxUnionId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCreateDt(Date createDt) 
    {
        this.createDt = createDt;
    }

    public Date getCreateDt() 
    {
        return createDt;
    }
    public void setLastDt(Date lastDt) 
    {
        this.lastDt = lastDt;
    }

    public Date getLastDt() 
    {
        return lastDt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeCode", getTypeCode())
            .append("code", getCode())
            .append("pwd", getPwd())
            .append("nick", getNick())
            .append("avatar", getAvatar())
            .append("cellphone", getCellphone())
            .append("wxNick", getWxNick())
            .append("wxAvatar", getWxAvatar())
            .append("wxOpenId", getWxOpenId())
            .append("wxUnionId", getWxUnionId())
            .append("status", getStatus())
            .append("createDt", getCreateDt())
            .append("lastDt", getLastDt())
            .toString();
    }
}
